#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<limits.h>
#include<math.h>
int minSubArrayLen(int target, int* nums, int numsSize) {
    if (numsSize == 0)
        return NULL;
    int start = 0, end = 0;
    int ans = INT_MAX;
    int sum = 0;
    while (end < numsSize)
    {
        sum += nums[end];
        while (sum >= target)
        {
            ans = fmin(ans, end - start + 1);
            sum -= nums[start];
            start++;
        }
        end++;
    }
    return ans == INT_MAX ? 0 : ans;
}

int main()
{

	return 0;
}